<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视图管理 - WMS仓库管理系统</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/view.css">
</head>
<body>
    <div class="container">
        <!-- 登录界面 -->
        <section id="loginSection" class="login-section">
            <div class="login-container">
                <h2>WMS仓库管理系统登录</h2>
                <form id="loginForm">
                    <div class="form-group">
                        <label for="username">用户名:</label>
                        <input type="text" id="username" required>
                    </div>
                    <div class="form-group">
                        <label for="password">密码:</label>
                        <input type="password" id="password" required>
                    </div>
                    <button type="submit" class="btn-primary">登录</button>
                    <p>默认管理员账号: admin / 123456</p>
                </form>
            </div>
        </section>

        <!-- 主内容界面 -->
        <div id="mainContent" class="main-content">
            <header>
                <h1>视图管理</h1>
                <p>可视化管理货位状态和物料分布</p>
                <div class="header-actions">
                    <a href="index.html" class="btn-secondary">返回首页</a>
                    <button id="logoutBtn" class="btn-secondary">退出登录</button>
                </div>
            </header>

            <main>
                <nav class="module-nav">
                    <ul>
                        <li><a href="#location-status" class="active">货位状态视图</a></li>
                        <li><a href="#location-material">货位物料视图</a></li>
                        <li><a href="#location-enable-disable">货位启用/禁用</a></li>
                    </ul>
                </nav>

                <!-- 货位状态视图 -->
                <section id="location-status" class="module-section active">
                    <h2>货位状态视图</h2>
                    <div class="view-controls">
                        <button id="refreshLocationStatusBtn" class="btn-primary">刷新视图</button>
                        <div class="view-options">
                            <label>
                                <input type="checkbox" id="showEmptyLocations"> 显示空货位
                            </label>
                            <label>
                                <input type="checkbox" id="showOccupiedLocations" checked> 显示有货货位
                            </label>
                            <label>
                                <input type="checkbox" id="showDisabledLocations"> 显示禁用货位
                            </label>
                        </div>
                    </div>
                    <div id="locationStatusView" class="visual-view">
                        <!-- 货位状态视图将通过JavaScript动态加载 -->
                        <p>货位状态视图加载中...</p>
                    </div>
                </section>

                <!-- 货位物料视图 -->
                <section id="location-material" class="module-section">
                    <h2>货位物料视图</h2>
                    <div class="view-controls">
                        <button id="refreshLocationMaterialBtn" class="btn-primary">刷新视图</button>
                        <div class="form-group">
                            <input type="text" id="materialFilter" placeholder="输入物料名称筛选">
                        </div>
                    </div>
                    <div id="locationMaterialView" class="visual-view">
                        <!-- 货位物料视图将通过JavaScript动态加载 -->
                        <p>货位物料视图加载中...</p>
                    </div>
                </section>

                <!-- 货位启用/禁用视图 -->
                <section id="location-enable-disable" class="module-section">
                    <h2>货位启用/禁用</h2>
                    <div class="view-controls">
                        <button id="refreshLocationEnableDisableBtn" class="btn-primary">刷新视图</button>
                        <button id="enableSelectedBtn" class="btn-primary">启用选中</button>
                        <button id="disableSelectedBtn" class="btn-secondary">禁用选中</button>
                        <div class="view-options">
                            <label>
                                <input type="checkbox" id="showEnabledLocations"> 显示启用货位
                            </label>
                            <label>
                                <input type="checkbox" id="showDisabledLocationsFilter" checked> 显示禁用货位
                            </label>
                        </div>
                    </div>
                    <div class="filter-section">
                        <div class="filter-row">
                            <div class="form-group">
                                <label for="locationCodeFilter">货位编码:</label>
                                <input type="text" id="locationCodeFilter" placeholder="输入货位编码筛选">
                            </div>
                            <div class="form-group">
                                <label for="aisleFilter">巷道:</label>
                                <select id="aisleFilter">
                                    <option value="">全部</option>
                                    <option value="A">A</option>
                                    <option value="B">B</option>
                                    <option value="C">C</option>
                                    <option value="D">D</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="rowFilter">排:</label>
                                <select id="rowFilter">
                                    <option value="">全部</option>
                                    <option value="01">01</option>
                                    <option value="02">02</option>
                                    <option value="03">03</option>
                                    <option value="04">04</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="columnFilter">列:</label>
                                <select id="columnFilter">
                                    <option value="">全部</option>
                                    <option value="01">01</option>
                                    <option value="02">02</option>
                                    <option value="03">03</option>
                                    <option value="04">04</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="levelFilter">层:</label>
                                <select id="levelFilter">
                                    <option value="">全部</option>
                                    <option value="01">01</option>
                                    <option value="02">02</option>
                                    <option value="03">03</option>
                                    <option value="04">04</option>
                                </select>
                            </div>
                        </div>
                        <div class="filter-actions">
                            <button id="applyFilterBtn" class="btn-primary">应用筛选</button>
                            <button id="resetFilterBtn" class="btn-secondary">重置筛选</button>
                        </div>
                    </div>
                    <div id="locationEnableDisableView" class="visual-view">
                        <!-- 货位启用/禁用视图将通过JavaScript动态加载 -->
                        <p>货位启用/禁用视图加载中...</p>
                    </div>
                </section>
            </main>
        </div>
    </div>

    <script src="js/view.js"></script>
</body>
</html>